﻿using ServiceStack.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPY.LeHealth.DTO
{
    /// <summary>
    /// 订单
    /// </summary>
    public class Order : BaseDTO
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string Ordercode { get; set; }

        /// <summary>
        /// 支付交易号
        /// </summary>
        public string PayCode { get; set; }

        /// <summary>
        /// 预定人用户id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 订单总价
        /// </summary>
        public Decimal SumPrice { get; set; }

        /// <summary>
        /// 优惠价格
        /// </summary>
        public Decimal PreferentialPrice { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public string CreateDate { get; set; }

        /// <summary>
        /// 体检人姓名
        /// </summary>
        public string BookerName { get; set; }

        /// <summary>
        ///体检人手机号
        /// </summary>
        public string BookerPhone { get; set; }

        /// <summary>
        /// 预订人性别 1男
        /// </summary>
        public int BookerSex { get; set; }

        /// <summary>
        /// 支付状态
        /// 0-待支付，1-待预约，2-待体检，3-体检完成
        /// </summary>
        public int State { get; set; }

        /// <summary>
        ///支付方式
        /// </summary>
        public int PayType { get; set; }

        /// <summary>
        /// 订单验证码
        /// </summary>
        public string ValidateCode { get; set; }

        /// <summary>
        /// 订单详情
        /// </summary>
        public List<OrderDetail> Details { get; set; }

        ///体检人身份证
        public string TpeopleAdd { get; set; }
    }
}
